package com.cqhgcloud.hgdp.organ.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cqhgcloud.hgdp.organ.entity.Student;
import com.cqhgcloud.hgdp.organ.servcie.StudentServcie;
import com.cqhgcloud.hgdp.organ.utils.R;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;

@RestController
@AllArgsConstructor
@RequestMapping("/student")
@Api(value = "学生表表操作接口", tags = "学生表操作接口")
public class StudentController{
	
	private StudentServcie studentService;
	/**
	 * http://127.0.0.1:9300/student/finstudent
	 * @return
	 */
	@GetMapping("finstudent")
	@ApiOperation(value = "查询学生表", notes = "查询学生表")
	public R<Student> finstudent() {
		return new R(studentService.finStudent());
	}
}
